package server.io.game.util;

public class Sort_Extract extends Sort_Base
{
	
	
	public void sort(Object[] arr, Object extract)
	{
		if(this.isValid(arr))
		{
			int _length = arr.length;
			for(int i = 0; i < _length; i++)
			{
				if(arr[i] == extract)
				{
					for(int k = i; k < _length - 1; k++)
					{
						swap(arr, k, k + 1);
					}
					_length = _length - 1;
				}
			}
		}
	}
}
